<!DOCTYPE html><html>
<head>
<meta charset="UTF-8">
<style>
a{TEXT-DECORATION:none}
th{overflow:hidden;white-space:nowrap}
.tb{white-space:nowrap;text-align:center}
.s{color:#cc3300}
.p{color:#3333ff}
.nb{white-space:nowrap}
</style></head>
<body bgcolor="#ccccff">
	<script type="text/javascript" src="/static/wz_tooltip.js"></script>
{%- if type == 2 %}
所有用户的异常信息：<br>
<form action="/panel" method="post" enctype="multipart/form-data">
{%- else %}
当前用户的异常信息：<br>
{%- endif %}
<table border="1" width="100%">
	<tr bgcolor="lightgray">
		<td align="center">author</td>
		<td align="center">title/url</td>
		<td align="center">fetch_date/pub_date</td>
		{%- if type == 2 %}<td align="center">刷新</td>{% endif -%}
	</tr>
{%- for entry in entries %}
	<tr>	
		<td width="18%">{{entry.author}}</td>	
		<td>
{%- if entry.summary and entry.url -%}
<span class="s">s</span> <a href="{{entry.url}}" target="_blank" onmouseover="Tip('{{entry.summary}}')" onmouseout="UnTip()">{{entry.title}}</a>
{%- elif not entry.summary and entry.url -%}
<a href="{{entry.url}}" target="_blank">{{entry.title}}</a>
{%- elif entry.summary and not entry.url -%}
<span class="s">s</span> <span onmouseover="Tip('{{entry.summary}}')" onmouseout="UnTip()">{{entry.title}}</span>
{%- else -%}
{{entry.title}}
{%- endif -%}
		</td>
{%- if entry.pub_date -%}
<td class="nb" onmouseover="Tip('{{entry.pub_date}}')" onmouseout="UnTip()"><span class="p">p</span>{{entry.fetch_date}}</td>
{%- else -%}
<td class="nb">&nbsp;&nbsp;{{entry.fetch_date}}</td>
{%- endif -%}
{%- if type == 2 -%}
		<td><button name="fetch" value="{{entry.source_id}}">刷新</button></td>
{%- endif -%}
	</tr>{%- endfor -%}
</table>
在问题消失或被解决后，程序会自动删除以上异常信息。<br><br>

<table border="1" width="100%">
{%- for one in info_list %}
<tr>
	<td>{{one[0]}}</td>
	<td>{{one[1]}}</td>
</tr>{% endfor %}
</table>
{%- if proc_list -%}		
<table border="1" width="100%">
	<tr>
		<td>进程</td>
		<td>进程ID</td>
		<td>状态</td>
		<td>CPU使用率</td>
		<td>CPU时间</td>
		<td>内存占用率</td>
		<td>物理内存</td>
		<td>虚拟内存</td>
	</tr>
	<tr>
{% for i in proc_list[0] %}
		<td>{{i}}</td>{% endfor %}
	</tr>
	<tr>
{% for i in proc_list[1] %}
		<td>{{i}}</td>{% endfor %}
	</tr>
</table>{% endif %}
{% if type == 2 %}
<br>
<table border="1" cellpadding="5">
    <tr>
        <td class="tb" bgcolor="#ff9999"><button name="name" value="fetch_all">更新所有信息源</button></td>
        <td class="tb" bgcolor="#ff9999"><button name="name" value="del_except">删除所有异常信息</button></td>
        <td class="tb" bgcolor="#ffcc33"><button name="name" value="download_db">下载当前数据库文件</button></td>
    </tr>
    <tr>
        <td class="tb" bgcolor="#ffcc33"><button name="name" value="compact_db">紧凑当前数据库文件</button></td>
        <td class="tb" bgcolor="#ffcc33"><button name="name" value="backup_db">备份当前数据库文件到磁盘</button></td>
        <td class="tb" bgcolor="#ffcc33"><button name="name" value="maintain_db">立刻进行数据库每日维护</button></td>
    </tr>
    <tr>
        <td class="tb" bgcolor="#339966"><a href="/listall" style="color:#ffffff">查看启用的信息源</a></td>
        <td class="tb" bgcolor="#339966"><button name="name" value="download_cfg">下载当前服务器配置</button></td>
        <td class="tb" bgcolor="#339966"><button name="name" value="reload_data">重新加载服务器上的配置</button></td>
    </tr>
    <tr>
 		<td class="tb" bgcolor="#9999ff"><a href="/viewerror" style="color:#000033">查看web进程异常记录文件</a></td>
        <td class="tb" bgcolor="#cc6699"><input type="file" name="file" accept="application/zip"></td>
        <td class="tb" bgcolor="#cc6699"><input type="submit" value="上传并加载此配置"></td>
    </tr>
	<tr>
		<td colspan=3>上传、加载新配置的方法：<br>1、把整个cfg目录压缩到一个zip文件。<br>2、点“浏览”选择该zip文件。<br>3、点“上传并加载此配置”。</td>
	</tr>
</table><br>
</form>
{%- endif -%}
</body>
</html>